import request from '@/utils/request'

// 查询来源渠道列表
export function listLinkmansource(query) {
  return request({
    url: '/crm/linkmanSource/list',
    method: 'get',
    params: query
  })
}



// 查询来源渠道详细
export function getLinkmansource(linkmanSourceId) {
  return request({
    url: '/crm/linkmanSource/' + linkmanSourceId,
    method: 'get'
  })
}

// 新增来源渠道
export function addLinkmansource(data) {
  return request({
    url: '/crm/linkmanSource',
    method: 'post',
    data: data
  })
}

// 修改来源渠道
export function updateLinkmansource(data) {
  return request({
    url: '/crm/linkmanSource',
    method: 'put',
    data: data
  })
}

// 删除来源渠道
export function delLinkmansource(linkmanSourceId) {
  return request({
    url: '/crm/linkmanSource/' + linkmanSourceId,
    method: 'delete'
  })
}

// 导出来源渠道
export function exportLinkmansource(query) {
  return request({
    url: '/crm/linkmanSource/export',
    method: 'get',
    params: query
  })
}

